SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Agurto, Jorge>
-- Create date: <29/10/2011>
-- Description:	<devuelve el credito de la tarjeta pasada por parametro>
-- =============================================
CREATE FUNCTION [GOOGLECODERS].CreditoTarjeta
	(@IdTarjeta int)
RETURNS float
AS
BEGIN
	RETURN (select Credito from [GOOGLECODERS].Tarjetas where IdTarjeta = @IdTarjeta)
END
GO